package com.ruoyi.answer.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考试记录业务对象 exam_record
 *
 * @author ruoyi
 * @date 2022-08-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ExamRecordBo extends BaseEntity {

    /**
     * 自动编号
     */
    @NotNull(message = "自动编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 考试用户账户
     */
    @NotNull(message = "考试用户账户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long employeeAccount;

    /**
     * 考试时长
     */
    @NotNull(message = "考试时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * 考试试卷id
     */
    @NotNull(message = "考试试卷id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long paperId;

    /**
     * 该试卷得分
     */
    @NotNull(message = "该试卷得分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long score;


}
